<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>品牌管理</title>
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="./adminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="./adminLTE/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="./css/style.css">
	<script src="./jQuery/jquery-2.2.3.min.js"></script>
    <script src="./bootstrap/js/bootstrap.min.js"></script>


	<!-- angularjs -->
	<script type="text/javascript" src="./angularjs/angular.min.js"></script>
	<!-- 分页组件开始 -->
	<script src="./angularjs/pagination.js"></script>
	<link rel="stylesheet" href="./angularjs/pagination.css">
	<!-- 分页组件结束 -->
	<script src="js/shopController.js"></script>

	<script src="./js/baseController.js"></script>


    
</head>
<body class="hold-transition skin-red sidebar-mini" ng-app="dzsw" ng-controller="shopController" ng-init="getDePts();getZhiweis();entity={};xzmx={}">
  <!-- .box-body -->
                    <div class="box-header with-border">
                        <h3 class="box-title">品牌管理</h3>
						<h3 class="box-title"><a href="http://localhost:8088/cas/logout">注销</a></h3>
                    </div>

                    <div class="box-body">

                        <!-- 数据表格 -->
                        <div class="table-box">

                            <!--工具栏-->
                            <div class="pull-left">
                                <div class="form-group form-inline">
                                    <div class="btn-group">
                                    </div>
                                </div>
                            </div>
                            <div class="box-tools pull-right">
                                <div class="has-feedback form-inline">
									姓名：<input  class="form-control" ng-model="searchEntity.name" >
									手机号：<input  class="form-control" ng-model="searchEntity.phone" >
									性别：<input  class="form-control" ng-model="searchEntity.sex" >
									部门：<select ng-model="searchEntity.dempid" ng-options="type.id as type.name for type in demplist">
										<option value="">--请选择--</option>
									</select>
									职位：<select ng-model="searchEntity.zhiweiid" ng-options="type.id as type.name for type in zhiweilist">
									<option value="">--请选择--</option>
								</select>

									<button type="button" class="btn btn-default" title="查询" ng-click="reloadList()"><i class="search"></i> 查询</button>
								</div>
                            </div>
                            <!--工具栏/-->

			                  <!--数据列表-->
			                  <table id="dataList" class="table table-bordered table-striped table-hover dataTable">
			                      <thead>
			                          <tr>
			                              <th class="" style="padding-right:0px">
			                                  <input id="selall" type="checkbox" class="icheckbox_square-blue" ng-click="selectAll($event)">
			                              </th> 
										  <th class="sorting_asc">姓名</th>
									      <th class="sorting">性别</th>
									      <th class="sorting">年龄</th>
										  <th class="sorting">手机号</th>
										  <th class="sorting">学历</th>
										  <th class="sorting">邮箱</th>
										  <th class="sorting">所属部门</th>
										  <th class="sorting">职位</th>
					                      <th class="text-center">操作</th>
			                          </tr>
			                      </thead>
			                      <tbody>
			                          <tr ng-repeat="emp in emplist">
			                              <td><input  type="checkbox" ng-checked="checkbox" ng-click="updateSelection($event,shop.id)"></td>
				                          <td>{{emp.name}}</td>
									      <td>{{emp.sex}}</td>
										  <td>{{emp.age}}</td>
										  <td>{{emp.phone}}</td>
										  <td>{{emp.xueli}}</td>
		                                  <td>{{emp.email}}</td>
										  <td>{{emp.depid}}</td>
										  <td>{{emp.zhiweiid}}</td>
		                                  <td class="text-center">                                           
		                                 	  <button type="button" class="btn bg-olive btn-xs" data-toggle="modal" data-target="#editModal" ng-click="getById(emp.name,emp.id)" >请假</button>
											  <button type="button" class="btn bg-olive btn-xs" data-toggle="modal" data-target="#editModalxzmx" ng-click="getxzmx(emp.id,emp.name)" >薪资明细</button>
		                                  </td>
			                          </tr>
			                      </tbody>
			                  </table>
			                  <!--数据列表/-->
							<tm-pagination conf="paginationConf"></tm-pagination>
							 
                        </div>
                        <!-- 数据表格 /-->
                        
                        
                        
                        
                     </div>
                    <!-- /.box-body -->
         
<!-- 编辑窗口 -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog" style="width:800px">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			<h3 id="myModalLabel">请假</h3>
		</div>
		<div class="modal-body">		
			<table class="table table-bordered table-striped">
		      	<tr>
		      		<td>姓名</td>
		      		<td><input  class="form-control" ng-model="entity.name" >  </td>
		      	</tr>		      	

				<tr>
					<td>类型</td>
					<td>
						<input type="radio" ng-model="entity.qjtype" value="1"> 事假
						<input type="radio" ng-model="entity.qjtype" value="2"> 病假
						<input type="radio" ng-model="entity.qjtype" value="3"> 婚假
						<input type="radio" ng-model="entity.qjtype" value="4"> 产假
					</td>
				</tr>

				<tr>
					<td>请假天数</td>
					<td><input  class="form-control" ng-model="entity.tianshu">  </td>
				</tr>

			</table>
		</div>
		<div class="modal-footer">						
			<button class="btn btn-success" data-dismiss="modal" aria-hidden="true" ng-click="save()">保存</button>
			<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</button>
		</div>
	  </div>
	</div>
</div>

  <!-- 编辑窗口 -->
  <div class="modal fade" id="editModalxzmx" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	  <div class="modal-dialog" style="width:800px">
		  <div class="modal-content">
			  <div class="modal-header">
				  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				  <h3 id="myModalLabel">薪资明细</h3>
			  </div>
			  <div class="modal-body">
				  <table class="table table-bordered table-striped">
					  <tr>
						  <td>姓名</td>
						  <td>岗位薪资</td>
						  <td>绩效薪资</td>
						  <td>带薪假</td>
						  <td>不带薪假</td>
						  <td>全勤奖</td>
						  <td>医保</td>
						  <td>养老保险</td>
						  <td>失业保险</td>
						  <td>公积金</td>
						  <td>应发金额</td>
					  </tr>
					  <tr>
						  <td>{{xzmx.name}}</td>
						  <td>{{xzmx.gwsalary}}</td>
						  <td>{{xzmx.jxsalary}}</td>
						  <td>{{xzmx.dxday}}</td>
						  <td>{{xzmx.bdxday}}</td>
						  <td>{{xzmx.qqj}}</td>
						  <td>{{xzmx.ylbx}}</td>
						  <td>{{xzmx.lbx}}</td>
						  <td>{{xzmx.sybx}}</td>
						  <td>{{xzmx.gjj}}</td>
						  <td>{{xzmx.yfje}}</td>
					  </tr>


				  </table>
			  </div>
			  <div class="modal-footer">
				  <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</button>
			  </div>
		  </div>
	  </div>
  </div>
<script type="text/javascript">


</script>
       
</body>
</html>